import request from '@/utils/request'

// 查询警校考生体检面试信息列表
export function listMedical(query) {
  return request({
    url: '/system/medical/list',
    method: 'get',
    params: query
  })
}

// 查询警校考生体检面试信息详细
export function getMedical(id) {
  return request({
    url: '/system/medical/' + id,
    method: 'get'
  })
}

// 新增警校考生体检面试信息
export function addMedical(data) {
  return request({
    url: '/system/medical',
    method: 'post',
    data: data
  })
}

// 修改警校考生体检面试信息
export function updateMedical(data) {
  return request({
    url: '/system/medical',
    method: 'put',
    data: data
  })
}

// 删除警校考生体检面试信息
export function delMedical(id) {
  return request({
    url: '/system/medical/' + id,
    method: 'delete'
  })
}

// 导出警校考生体检面试信息
export function exportMedical(query) {
  return request({
    url: '/system/medical/export',
    method: 'get',
    params: query
  })
}

// 批量通过面试体检
export function batchPassMedical(data) {
  return request({
    url: '/system/medical/batchPass',
    method: 'put',
    data: data
  })
}
